import request from '@/utils/request'

export function listLogLoginByPage(params) {
  return request({
    url: '/log/listLogLoginByPage',
    method: 'get',
    params
  })
}

export function listLogOperateByPage(params) {
  return request({
    url: '/log/listLogOperateByPage',
    method: 'get',
    params
  })
}

export function listLogErrorByPage(params) {
  return request({
    url: '/log/listLogErrorByPage',
    method: 'get',
    params
  })
}

export function delLogLogin(id) {
  return request({
    url: `/log/delLogLogin?id=${id}`,
    method: 'delete'
  })
}


export function delLogOperate(id) {
  return request({
    url: `/log/delLogOperate?id=${id}`,
    method: 'delete'
  })
}

export function delLogError(id) {
  return request({
    url: `/log/delLogError?id=${id}`,
    method: 'delete'
  })
}

export function logStatistics(type) {
  return request({
    url: `/log/statistics?type=${type}`,
    method: 'get'
  })
}

export function updateLogStatistics(url) {
  return request({
    url: `${url}`,
    method: 'get'
  })
}



